package com.njd.test.autocreatedentity;

public class DataBeasTypeToJavaType {

	public String get(String type)
	{
		if(type.equals("char")){return "String";}
		else if(type.equals("varchar")){return "String";}
		else if(type.equals("blob")){return "Byte[]";}
		else if(type.equals("text")){return "String";}
		else if(type.equals("int")){return "Integer";}
		else if(type.equals("tinyint")){return "Integer";}
		else if(type.equals("smallint")){return "Integer";}
		else if(type.equals("mediumint")){return "Integer";}
		else if(type.equals("bit")){return "Boolean";}
		else if(type.equals("bigint")){return "BigInteger";}
		else if(type.equals("decimal")){return "BigDecimal";}
		else if(type.equals("date")){return "Date";}
		else if(type.equals("datetime")){return "Timestamp";}
		else if(type.equals("timestamp")){return "Timestamp";}
		else if(type.equals("time")){return "Time";}
		else if(type.equals("year")){return "Date";}
		else if(type.equals("float")){return "Float";}
		else if(type.equals("double")){return "Double";}
		else if(type.equals("integer")){return "Long";}
		else{return null;}
	}
}